﻿
namespace AllServer.GrpcService.Account.Component;

public sealed class EntryServiceComponent : IServiceComponent
{
    public void Load(IServiceCollection services, ComponentContext componentContext)
    {
        services.AddComponent<AppStartupComponent>();
    }
}


public sealed class EntryUseComponent : IApplicationComponent
{
    /// <summary>
    /// 
    /// </summary>
    /// <param name="app"></param>
    /// <param name="env"></param>
    /// <param name="componentContext"></param>
    public void Load(IApplicationBuilder app, IWebHostEnvironment env, ComponentContext componentContext)
    {
        app.UseComponent<AppStartupComponent>(env);
    }
}